Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: optional TypeArrays remapping in realm #447

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

dejang
Copy link
Collaborator

@dejang dejang commented Jan 29, 2024

Introducing a new configuration option when a VirtualEnvironment is being created: remapTypedArrays.

This allows the creator of the sandbox to control whether TypeArrays will use the environment's own prototypes (Red) or the Blue ones.

In situations where a specific piece of code does TypeArrays manipulation at scale (50k+ entries) this option could be considered in order to drastically improve performance of the code running in the Red realm.

By default remapping is enabled and the option requires passing explicitly false in order to be disabled.

@rwaldron rwaldron merged commit ba7c125 into salesforce:main Jan 29, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants